
Ext.define('Avrio.model.Device_Session', {
    extend: 'Ext.data.Model',
// <editor-fold defaultstate="collapsed" desc="fields">
    fields: [
        { name: 'id',                       type: 'int' },
        { name: 'version',                  type: 'bigint', defaultValue: 0  },
        { name: 'device_type_id',           type: 'int',    defaultValue: 0  },
        { name: 'session_id',               type: 'int',    defaultValue: 0  },
        { name: 'device_status',            type: 'string', defaultValue: '' },
        { name: 'measurement_sample_rate',  type: 'int',    defaultValue: 0  },
        { name: 'facility_id',              type: 'int',    defaultValue: 0  },
        { name: 'device_start_time',        type: 'date',   dateFormat: 'Y-m-d 00:00:00' },
        { name: 'device_stop_time',         type: 'date',   dateFormat: 'Y-m-d 00:00:00' },
        { name: 'device_serial_number',     type: 'string', defaultValue: '' },
        { name: 'device_inactivity_timeout',type: 'int',    defaultValue: 0  }

    ],
// </editor-fold>
    idProperty: 'id'
});
